package pe.org.ecampos.service;

import java.util.ArrayList;
import java.util.Collection;

import org.springframework.stereotype.Component;

import pe.org.ecampos.model.VueloBean;

@Component
public class VuelosDAOImpl implements VuelosDAO {

	@Override
	public Collection<VueloBean> listarVuelos() {
		Collection<VueloBean> lista = new ArrayList<VueloBean>();
		lista.add( new VueloBean(1,"V_0001", "R_001","A_001"));
		lista.add( new VueloBean(2,"V_0002", "R_002","A_002"));
		lista.add( new VueloBean(3,"V_0003", "R_003","A_003"));
		lista.add( new VueloBean(4,"V_0004", "R_004","A_004"));
		return lista;
	}

	@Override
	public VueloBean obtenerVuelo(String idVuelo) {
		return new VueloBean(4,"V_0004", "R_004","A_004");
	}

}
